<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>

<style>
<!--
.bankinfo{
width: 600px;
}
-->
</style>

<script type="text/javascript">
$(function() {
     parent.$.messager.progress('close');
});

var var_column_item='<s:text name="erp.business.contract.trade.item"></s:text>';
var var_column_itemSize='<s:text name="erp.business.contract.trade.itemsize"></s:text>';
var var_column_totalCont='<s:text name="erp.business.contract.trade.totalcont"></s:text>';
var var_column_boxCont='<s:text name="erp.business.contract.trade.boxcont"></s:text>';
var var_column_totalBox='<s:text name="erp.business.contract.trade.totalbox"></s:text>';
var var_column_pcsBox='<s:text name="erp.business.contract.trade.pcsbox"></s:text>';
var var_column_totalPcs='<s:text name="erp.business.contract.trade.totalpcs"></s:text>';
var var_column_mtwoCont='<s:text name="erp.business.contract.trade.mtwocont"></s:text>';
var var_column_totalMtwo='<s:text name="erp.business.contract.trade.totalmtwo"></s:text>';
var var_column_fobunitPrice='<s:text name="erp.business.contract.trade.fobunitprice"></s:text>';
var var_column_amount='<s:text name="erp.business.contract.trade.amount"></s:text>';

var var_crmcus_select_title='<s:text name="erp.selectbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';
var var_crmcus_please_select='<s:text name="erp.please.selectbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';
var var_crmcus_onlyone_select='<s:text name="erp.only.selectone.business"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';
var var_fobcost_select_title='<s:text name="erp.selectbusiness"><s:param><s:text name="erp.business.fobcost.businame"></s:text></s:param></s:text>';
var var_fobcost_please_select='<s:text name="erp.please.selectbusiness"><s:param><s:text name="erp.business.fobcost.businame"></s:text></s:param></s:text>';
var var_fobcost_onlyone_select='<s:text name="erp.only.selectone.business"><s:param><s:text name="erp.business.fobcost.businame"></s:text></s:param></s:text>';

var var_tatal_amount_str = "<s:text name='erp.business.contract.trade.totalamount'></s:text>";
var var_dtl_title = '<s:text name="erp.main.detail"></s:text>';
var var_dtl_required = '<s:text name="erp.required.business"><s:param><s:text name="erp.main.detail"></s:text></s:param></s:text>';

var var_tradeCusContract_id = '${tradeCusContract.id}';//用于对应查询细表记录

var var_tradeCusContract_totTotalConts = '${tradeCusContract.totTotalConts}';
var var_tradeCusContract_totTotalBoxs = '${tradeCusContract.totTotalBoxs}';
var var_tradeCusContract_totTotalPcs = '${tradeCusContract.totTotalPcs}';
var var_tradeCusContract_totTotalMtwos = '${tradeCusContract.totTotalMtwos}';
var var_tradeCusContract_totTotalAmount = '${tradeCusContract.totTotalAmount}';
var var_tradeCusContract_totTotalAmountEn = '${tradeCusContract.totTotalAmountEn}';
</script>
<script type="text/javascript" src="${ctx}/js/erp/contract/trade/viewTradeCusContract.js"></script>
<div id="add-edit-dialog">
        <div class="p5">
                <table class="tablewidth1">
                	<tr>
                		<td align="center" colspan="3">
                			<h4>${tradeCusContract.inexpComName}</h4>
                		</td>
                	</tr>
                	<tr>
                		<td align="center" colspan="3">
                			<h4>${tradeCusContract.inexpComAddress}</h4>
                		</td>
                	</tr>
                	<tr>
                		<td align="center" colspan="3">
                			<h4>${tradeCusContract.companyAddress}</h4>
                		</td>
                	</tr>
                	<tr>
                		<td align="center" colspan="3">
                			<h5>
                				${tradeCusContract.companyEmail}
                				&nbsp;&nbsp;&nbsp;
                				${tradeCusContract.companyMob}
                				&nbsp;&nbsp;&nbsp;
                				${tradeCusContract.companyTel}
                				&nbsp;&nbsp;&nbsp;
                				${tradeCusContract.companyFax}
                			</h5>
                		</td>
                	</tr>
                	<tr>
                		<td align="center" colspan="3">
                			<h4><u><s:text name="erp.business.contract.trade.commerinvoice"></s:text></u></h4>
                		</td>
                	</tr>
                	<tr>
                		<td align="right">
                			<h4>
                			<s:text name="erp.business.contract.trade.to"></s:text>：
                			</h4>
                			<br/>
                			<br/>
                			<br/>
                			<br/>
                			<br/>
                			&nbsp;
                		</td>
                		<td align="left"> 
                			<div style="width: 380px;height:55px;margin-top:0px;"><strong>${tradeCusContract.cusAddress}</strong></div>              			
                			<br/>
								<strong>${tradeCusContract.cusTelFax}</strong>
                			<br/>
                			<br/>
                				<strong>${tradeCusContract.cusEmail}</strong>
                		</td>
                		<td align="left">
                			<h5>
                			<u><s:text name="erp.business.contract.trade.invoiceno"></s:text>：${tradeCusContract.invoiceNo}</u>
                			</h5>
                			<br/>
                			<h5>
                			<u><s:text name="erp.business.contract.trade.invoicedate"></s:text>：${tradeCusContract.invoiceDate}</u>
                			</h5>
                			<br/>
                			<br/>
                			&nbsp;
                		</td>
                	</tr>
                </table>

                <div class="fn-clear"></div>

                <table id="dtlDatagrid"></table> 
                
                <table id="totalTab"></table>
                
                <table id="amountEnTab"></table>
				
                <div>
                	<h5>
	                	<u><s:text name="erp.business.contract.trade.bankinfo"></s:text></u>
	                	<br/>
	                	${tradeCusContract.benBankName}
	                	<br/>
	                	${tradeCusContract.benBankCode}
	                	<br/>
	                	${tradeCusContract.swiftCode}
	                	<br/>
	                	${tradeCusContract.acName}
	                	<br/>
	                	${tradeCusContract.acCode}
                	</h5>
                </div>
                <div>
                	<h5>
                	<u><s:text name="erp.business.contract.trade.seller"></s:text></u>
                	<br/>
                	<span>${tradeCusContract.inexpComName}</span>
                	</h5>
                </div>
        </div>
    </div> 